{include file="header.html"}
<div class="row">
<div class="span12">
{include file='weixin_command/nav.html'}
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>id</td>
   <td>微信id</td>
   <td>命令名称</td>
   <td>命令</td>
   <td>命令类型</td>
   <td>内容</td>
   <td>dateline</td>
<td>操作</td>
  </tr>
 {foreach item=c from=$data}
<tr>
   <td>{$c.id}</td>
   <td>{$weixin_list[$c['wid']]['title']}</td>    
   <td>{$c.title} {if $c.isdefault}<span style="color:red;">默认</span>{/if}</td>
   <td>{$c.command}</td>
   <td>{$type_list[$c.type_id]}</td>
   <td>{$c.content|cutstr:24}</td>
   <td>{$c.dateline|date:Y-m-d}</td>
<td><a href="{$appadmin}?m=weixin_command&a=add&id={$c.id}&wid={$c.wid}">编辑</a> 
<a href="javascript:;" class="delete" url="{$appadmin}?m=weixin_command&a=delete&id={$c.id}&wid={$c.wid}">删除</a></td>
  </tr>
   {/foreach}
 </table>
<div>{$pagelist}</div>
</div>
</div>
{include file="footer.html"}